package wx.xml.wutka.dtd;

/**
 * Enumerated value representing the type of a token
 *
 * @author Mark Wutka
 * @version $Revision: 1.1 $ $Date: 2004/08/19 05:30:24 $ by $Author: aslom $
 */
class TokenType {
    public int    value;
    public String name;

    public TokenType(int aValue, String aName) {
        value = aValue;
        name = aName;
    }

    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof TokenType))
            return false;

        TokenType other = (TokenType) o;
        if (other.value == value)
            return true;
        return false;
    }

    public int hashCode() {
        return name.hashCode();
    }
}
